/*
* @Date: 2020/4/28
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default class {
  constructor(name, dirPath) {
    this.name = name;  // 工程名
    this.dirPath = dirPath; // 工程目录
    this.curPath = dirPath;
    this.curScene = 0; // 当前场景 0: 目录， 1: 组件， 2: 页面
    this.pages = [];   // 工程页面
    this.components = []; // 工程组件
  }

  switchPath(path) {
    this.curPath = path;
  }
}
